package cn.zgwj.org.domain;

import cn.zgwj.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{
    //部门编号
    private String sn;
    private String name;
    //上级部门Id路径
    @ApiModelProperty("上级部门Id路径")
    private String dirPath;
    private Integer state;
    //部门管理员ID  Employee表
    private Long manager_id;

    private Employee manager;


    //上级部门
    private Long parent_id;
    private Department parent;

    //二级部门
    private List<Department> children = new ArrayList<>();

}
